home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / C-Cl / clipToICON XCMD.cpt / clipToICON XCMD Folder / clipToICON XCMD / background_2726.xml next >
Extensible Markup Language  |  1991-10-03  |  11KB  |  326 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2726</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <false /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <link rel="stylesheet" type="text/css" href="stylesheet_3106.css" />
  10.     <part>
  11.         <id>3</id>
  12.         <type>button</type>
  13.         <visible> <true /> </visible>
  14.         <reserved5> 0 </reserved5>
  15.         <reserved4> 0 </reserved4>
  16.         <reserved3> 0 </reserved3>
  17.         <reserved2> 0 </reserved2>
  18.         <reserved1> 0 </reserved1>
  19.         <enabled> <true /> </enabled>
  20.         <rect>
  21.             <left>301</left>
  22.             <top>315</top>
  23.             <right>370</right>
  24.             <bottom>337</bottom>
  25.         </rect>
  26.         <style>roundrect</style>
  27.         <showName> <true /> </showName>
  28.         <highlight> <false /> </highlight>
  29.         <autoHighlight> <true /> </autoHighlight>
  30.         <sharedHighlight> <true /> </sharedHighlight>
  31.         <family>0</family>
  32.         <titleWidth>0</titleWidth>
  33.         <icon>0</icon>
  34.         <textAlign>center</textAlign>
  35.         <font>Chicago</font>
  36.         <textSize>12</textSize>
  37.         <textStyle>plain</textStyle>
  38.         <name>Example</name>
  39.         <script>on mouseUp-- GET NAME OF ICONask "An ICON will be created using the card art found in the" &&¬¨"square marked:" & return &¬¨"                 ‚ÄúDraw your ICON here‚Äù" & return & return &¬¨"Enter a name for your ICON." with sampleif the result is not empty then exit mouseUp -- Cancelput it into iconName------------------------------------------------------------------ COPY A 32 * 32 PIXEL REGION TO THE CLIPBOARDchoose select toolput right of btn "leftBorder" into xOriginput bottom of btn "TopBorder" into yOrigindrag from xOrigin, yOrigin to (xOrigin + 31), (yOrigin + 31)doMenu "Copy Picture"choose browse tool------------------------------------------------------------------ CONVERT THE IMAGE ON CLIPBOARD TO AN ICONclipToICON iconName -- applies image on clipboard to an ICON------------------------------------------------------------------ FORCE HYPERCARD TO READ THE MODIFIED RESOURCE FORKlock screenset the lockMessages to truego homego back------------------------------------------------------------------ DISPLAY NEW ICONset the icon of btn 1 to iconNameset the name of btn 1 to iconNameshow btn 1end mouseUp</script>
  40.     </part>
  41.     <part>
  42.         <id>4</id>
  43.         <type>field</type>
  44.         <visible> <true /> </visible>
  45.         <dontWrap> <false /> </dontWrap>
  46.         <dontSearch> <false /> </dontSearch>
  47.         <sharedText> <false /> </sharedText>
  48.         <fixedLineHeight> <false /> </fixedLineHeight>
  49.         <autoTab> <false /> </autoTab>
  50.         <lockText> <false /> </lockText>
  51.         <rect>
  52.             <left>18</left>
  53.             <top>8</top>
  54.             <right>264</right>
  55.             <bottom>35</bottom>
  56.         </rect>
  57.         <style>rectangle</style>
  58.         <autoSelect> <false /> </autoSelect>
  59.         <showLines> <false /> </showLines>
  60.         <wideMargins> <true /> </wideMargins>
  61.         <multipleLines> <false /> </multipleLines>
  62.         <reservedFamily> 0 </reservedFamily>
  63.         <titleWidth>0</titleWidth>
  64.         <icon>0</icon>
  65.         <textAlign>left</textAlign>
  66.         <font>Palatino</font>
  67.         <textSize>18</textSize>
  68.         <textStyle>plain</textStyle>
  69.         <textHeight>24</textHeight>
  70.         <name>title</name>
  71.         <script></script>
  72.     </part>
  73.     <part>
  74.         <id>5</id>
  75.         <type>field</type>
  76.         <visible> <true /> </visible>
  77.         <dontWrap> <false /> </dontWrap>
  78.         <dontSearch> <false /> </dontSearch>
  79.         <sharedText> <false /> </sharedText>
  80.         <fixedLineHeight> <false /> </fixedLineHeight>
  81.         <autoTab> <false /> </autoTab>
  82.         <lockText> <false /> </lockText>
  83.         <rect>
  84.             <left>18</left>
  85.             <top>42</top>
  86.             <right>499</right>
  87.             <bottom>283</bottom>
  88.         </rect>
  89.         <style>scrolling</style>
  90.         <autoSelect> <false /> </autoSelect>
  91.         <showLines> <false /> </showLines>
  92.         <wideMargins> <false /> </wideMargins>
  93.         <multipleLines> <false /> </multipleLines>
  94.         <reservedFamily> 0 </reservedFamily>
  95.         <titleWidth>0</titleWidth>
  96.         <icon>0</icon>
  97.         <textAlign>left</textAlign>
  98.         <font>Palatino</font>
  99.         <textSize>12</textSize>
  100.         <textStyle>plain</textStyle>
  101.         <textHeight>16</textHeight>
  102.         <name>Documentation</name>
  103.         <script></script>
  104.     </part>
  105.     <part>
  106.         <id>7</id>
  107.         <type>button</type>
  108.         <visible> <true /> </visible>
  109.         <reserved5> 0 </reserved5>
  110.         <reserved4> 0 </reserved4>
  111.         <reserved3> 0 </reserved3>
  112.         <reserved2> 0 </reserved2>
  113.         <reserved1> 0 </reserved1>
  114.         <enabled> <true /> </enabled>
  115.         <rect>
  116.             <left>474</left>
  117.             <top>314</top>
  118.             <right>501</right>
  119.             <bottom>336</bottom>
  120.         </rect>
  121.         <style>roundrect</style>
  122.         <showName> <true /> </showName>
  123.         <highlight> <false /> </highlight>
  124.         <autoHighlight> <true /> </autoHighlight>
  125.         <sharedHighlight> <true /> </sharedHighlight>
  126.         <family>0</family>
  127.         <titleWidth>0</titleWidth>
  128.         <icon>0</icon>
  129.         <textAlign>center</textAlign>
  130.         <font>Chicago</font>
  131.         <textSize>12</textSize>
  132.         <textStyle>plain</textStyle>
  133.         <name>!</name>
  134.         <script>on mouseUpget fld "title"put word 1 of it into externalput word 2 of it into resourceTypeif resourceType is "XCMD" thendo (external && quote & "!" & quote & return & "get the result")else if resourceType is "XFCN" thendo (get && external && "(" & quote & "!" & quote & ")")elseexit mouseUpend ifanswer itend mouseUp</script>
  135.     </part>
  136.     <part>
  137.         <id>8</id>
  138.         <type>button</type>
  139.         <visible> <true /> </visible>
  140.         <reserved5> 0 </reserved5>
  141.         <reserved4> 0 </reserved4>
  142.         <reserved3> 0 </reserved3>
  143.         <reserved2> 0 </reserved2>
  144.         <reserved1> 0 </reserved1>
  145.         <enabled> <true /> </enabled>
  146.         <rect>
  147.             <left>473</left>
  148.             <top>290</top>
  149.             <right>500</right>
  150.             <bottom>312</bottom>
  151.         </rect>
  152.         <style>roundrect</style>
  153.         <showName> <true /> </showName>
  154.         <highlight> <false /> </highlight>
  155.         <autoHighlight> <true /> </autoHighlight>
  156.         <sharedHighlight> <true /> </sharedHighlight>
  157.         <family>0</family>
  158.         <titleWidth>0</titleWidth>
  159.         <icon>0</icon>
  160.         <textAlign>center</textAlign>
  161.         <font>Chicago</font>
  162.         <textSize>12</textSize>
  163.         <textStyle>plain</textStyle>
  164.         <name>?</name>
  165.         <script>on mouseUpget fld "title"put word 1 of it into externalput word 2 of it into resourceTypeif resourceType is "XCMD" thendo (external && "?" & return & "get the result")else if resourceType is "XFCN" thendo (get && external && "(" & quote & "?" & quote & ")")elseexit mouseUpend ifanswer itend mouseUp</script>
  166.     </part>
  167.     <part>
  168.         <id>12</id>
  169.         <type>button</type>
  170.         <visible> <true /> </visible>
  171.         <reserved5> 0 </reserved5>
  172.         <reserved4> 0 </reserved4>
  173.         <reserved3> 0 </reserved3>
  174.         <reserved2> 0 </reserved2>
  175.         <reserved1> 0 </reserved1>
  176.         <enabled> <true /> </enabled>
  177.         <rect>
  178.             <left>375</left>
  179.             <top>315</top>
  180.             <right>468</right>
  181.             <bottom>337</bottom>
  182.         </rect>
  183.         <style>roundrect</style>
  184.         <showName> <true /> </showName>
  185.         <highlight> <false /> </highlight>
  186.         <autoHighlight> <true /> </autoHighlight>
  187.         <sharedHighlight> <true /> </sharedHighlight>
  188.         <family>0</family>
  189.         <titleWidth>0</titleWidth>
  190.         <icon>0</icon>
  191.         <textAlign>center</textAlign>
  192.         <font>Chicago</font>
  193.         <textSize>12</textSize>
  194.         <textStyle>plain</textStyle>
  195.         <name>Show Source</name>
  196.         <script>on mouseUptoggleSourceend mouseUp</script>
  197.     </part>
  198.     <part>
  199.         <id>13</id>
  200.         <type>button</type>
  201.         <visible> <true /> </visible>
  202.         <reserved5> 0 </reserved5>
  203.         <reserved4> 0 </reserved4>
  204.         <reserved3> 0 </reserved3>
  205.         <reserved2> 0 </reserved2>
  206.         <reserved1> 0 </reserved1>
  207.         <enabled> <true /> </enabled>
  208.         <rect>
  209.             <left>475</left>
  210.             <top>7</top>
  211.             <right>503</right>
  212.             <bottom>38</bottom>
  213.         </rect>
  214.         <style>transparent</style>
  215.         <showName> <false /> </showName>
  216.         <highlight> <false /> </highlight>
  217.         <autoHighlight> <true /> </autoHighlight>
  218.         <sharedHighlight> <true /> </sharedHighlight>
  219.         <family>0</family>
  220.         <titleWidth>0</titleWidth>
  221.         <icon>19678</icon>
  222.         <textAlign>center</textAlign>
  223.         <font>Chicago</font>
  224.         <textSize>12</textSize>
  225.         <textStyle>plain</textStyle>
  226.         <name>About</name>
  227.         <script>on mouseUp-- showDialog XCMD by Jay HodgdonshowDialog 1,6123,"","True"end mouseUp</script>
  228.     </part>
  229.     <part>
  230.         <id>14</id>
  231.         <type>field</type>
  232.         <visible> <false /> </visible>
  233.         <dontWrap> <false /> </dontWrap>
  234.         <dontSearch> <false /> </dontSearch>
  235.         <sharedText> <false /> </sharedText>
  236.         <fixedLineHeight> <false /> </fixedLineHeight>
  237.         <autoTab> <false /> </autoTab>
  238.         <lockText> <true /> </lockText>
  239.         <rect>
  240.             <left>18</left>
  241.             <top>42</top>
  242.             <right>499</right>
  243.             <bottom>283</bottom>
  244.         </rect>
  245.         <style>scrolling</style>
  246.         <autoSelect> <false /> </autoSelect>
  247.         <showLines> <false /> </showLines>
  248.         <wideMargins> <false /> </wideMargins>
  249.         <multipleLines> <false /> </multipleLines>
  250.         <reservedFamily> 0 </reservedFamily>
  251.         <titleWidth>0</titleWidth>
  252.         <icon>0</icon>
  253.         <textAlign>left</textAlign>
  254.         <font>Geneva</font>
  255.         <textSize>9</textSize>
  256.         <textStyle>plain</textStyle>
  257.         <textHeight>12</textHeight>
  258.         <name>Source Code</name>
  259.         <script>on mouseUptoggleSourceend mouseUp</script>
  260.     </part>
  261.     <part>
  262.         <id>15</id>
  263.         <type>button</type>
  264.         <visible> <true /> </visible>
  265.         <reserved5> 0 </reserved5>
  266.         <reserved4> 0 </reserved4>
  267.         <reserved3> 0 </reserved3>
  268.         <reserved2> 0 </reserved2>
  269.         <reserved1> 0 </reserved1>
  270.         <enabled> <true /> </enabled>
  271.         <rect>
  272.             <left>375</left>
  273.             <top>290</top>
  274.             <right>467</right>
  275.             <bottom>312</bottom>
  276.         </rect>
  277.         <style>roundrect</style>
  278.         <showName> <true /> </showName>
  279.         <highlight> <false /> </highlight>
  280.         <autoHighlight> <true /> </autoHighlight>
  281.         <sharedHighlight> <true /> </sharedHighlight>
  282.         <family>0</family>
  283.         <titleWidth>0</titleWidth>
  284.         <icon>0</icon>
  285.         <textAlign>center</textAlign>
  286.         <font>Chicago</font>
  287.         <textSize>12</textSize>
  288.         <textStyle>plain</textStyle>
  289.         <name>Print Doc</name>
  290.         <script>on mouseUpanswer "Print Now?" with "Cancel" or "OK"if it is not "OK" then exit mouseUpif the name of me is "Print Doc" thenprint field "Documentation"elseprint field "Documentation"end ifend mouseUp</script>
  291.     </part>
  292.     <part>
  293.         <id>17</id>
  294.         <type>button</type>
  295.         <visible> <true /> </visible>
  296.         <reserved5> 0 </reserved5>
  297.         <reserved4> 0 </reserved4>
  298.         <reserved3> 0 </reserved3>
  299.         <reserved2> 0 </reserved2>
  300.         <reserved1> 0 </reserved1>
  301.         <enabled> <true /> </enabled>
  302.         <rect>
  303.             <left>440</left>
  304.             <top>7</top>
  305.             <right>469</right>
  306.             <bottom>38</bottom>
  307.         </rect>
  308.         <style>transparent</style>
  309.         <showName> <false /> </showName>
  310.         <highlight> <false /> </highlight>
  311.         <autoHighlight> <true /> </autoHighlight>
  312.         <sharedHighlight> <true /> </sharedHighlight>
  313.         <family>0</family>
  314.         <titleWidth>0</titleWidth>
  315.         <icon>13744</icon>
  316.         <textAlign>center</textAlign>
  317.         <font>Chicago</font>
  318.         <textSize>12</textSize>
  319.         <textStyle>plain</textStyle>
  320.         <name>Home</name>
  321.         <script>on mouseUpgo homeend mouseUp</script>
  322.     </part>
  323.     <name></name>
  324.     <script>on openCardif the visible of fld "Source Code" is true then toggleSourceend openCardon toggleSourceif the visible of fld "Source Code" is true thenhide fld "Source Code"if there is a bg btn "Hide Source" thenset the name of bg btn "Hide Source" to "Show Source"end ifif there is a bg btn "Print Source" thenset the name of bg btn "Print Source" to "Print Doc"end ifelseshow fld "Source Code"if there is a bg btn "Show Source" thenset the name of bg btn "Show Source" to "Hide Source"end ifif there is a bg btn "Print Doc" thenset the name of bg btn "Print Doc" to "Print Source"end ifend ifend toggleSource</script>
  325. </background>
  326.